<?php
if(isset ($_GET['fid'])):
    $fid = $_GET['fid'];
    $curdir = dirname($_SERVER['REQUEST_URI']);

    //check if venue image exists
    if(file_exists('floor_'.$fid.'.jpg')){
        echo "<img src='".$curdir."/floor_".$fid.".jpg' />";
    }
    else{
        echo "<img src='".$curdir."/../nopicture.jpg' />";
    }
endif;
?>
